﻿using MengLin.OOP.DesignPattern.CommandPattern.Barbecuer.Abstract;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.CommandPattern.Barbecuer.Implements
{
    /// <summary>
    /// 烤鸡翅命令
    /// </summary>
    class BakeChickenWingCommand : AbstractCommand
    {
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="receiver"></param>
        public BakeChickenWingCommand(Barbecuer receiver) : base(receiver)
        {

        }

        /// <summary>
        /// 执行命令
        /// </summary>
        public override void ExcuteCommand()
        {
            _receiver.BakeChickenWing();
        }
    }
}
